<template>
  <h2>我是Vue渲染出来的</h2>
  <h2>{{title}}</h2>
  <button @click="printImg">222</button>
  <hello-world></hello-world>
</template>

<script>
  import HelloWorld from "./HelloWorld.vue"

  export default {
    components: {
      HelloWorld
    },
    data() {
      return {
        title: "Hello World",
        message: "哈哈哈"
      }
    },
    methods: {
      printImg(){
        window.print()
      }
    }
  }
</script>

<style scoped>
  h2 {
    color: red;
  }
</style>